home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 3138 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: zetnet.co.uk!demon!m500324.dev.phonelink.com
  2. From: stevek@phonelink.com (Steve Kaye)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Problems compiling gcc
  5. Date: Thu, 08 Feb 1996 13:37:47 GMT
  6. Organization: PhoneLink PLC
  7. Message-ID: <3119fc4c.16936424@pubnews.demon.co.uk>
  8. References: <4fce90$8bj@due.unit.no>
  9. NNTP-Posting-Host: m500324.dev.phonelink.com
  10. X-NNTP-Posting-Host: m500324.dev.phonelink.com
  11. X-Newsreader: Forte Agent .99c/16.141
  12.  
  13. On 8 Feb 1996 09:03:28 GMT, atlep@alkymi.unit.no (Atle \ystein
  14. Pedersen) wrote:
  15.  
  16. >I've installed GnuC++ and tried to compile a simple prog..
  17. >Here's the situation as viewed from a shell..
  18. >
  19. >0 Serious:C/Test > type test.cpp
  20. >
  21. >#include <iostream.h>
  22. >#include <stdio.h>
  23. >
  24. >int main(int argc, char **argv)
  25. >
  26. >{
  27. >        printf("Hello World!\n");
  28. >        cout << "Hello world\n";
  29. >        return 0;
  30. >}
  31. >0 Serious:C/Test > gcc -c test.cpp
  32. >0 Serious:C/Test > gcc  test.cpp
  33. >/t/cc9981921.o: Undefined symbol _cout referenced from text segment
  34. >/t/cc9981921.o: Undefined symbol _  ls_ 7ostreamPCc referenced from text
  35. >segment
  36.  
  37. Try gcc test.cpp -liostream
  38.  
  39. Hope this helps.
  40.  
  41. Steve
  42.  
  43.